package cn.yangliu.nacos.management.repository.sys;

import cn.yangliu.jpa.base.repository.BaseRepository;
import cn.yangliu.nacos.management.entity.sys.User;

/**
 * The type of nacos.
 *
 * @author 问道于盲
 * @date 2020 -01-01
 */
public interface UserRepository extends BaseRepository<User, Long> {

    /**
     * Find by username user.
     *
     * @param username the username
     * @return the user
     */
    User findByUsername(String username);

    /**
     * Find by oauth 2 id user.
     *
     * @param oauth2Id the oauth 2 id
     * @return the user
     */
    User findByOauth2Id(Long oauth2Id);
}
